package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 实验流程进度状态枚举类
 *
 * @author HCG
 * @version 1.0
 * @date 2022/4/6
 */
@AllArgsConstructor
@Getter
public enum ExperimentFishStatusEnum {

    SYCS(0, "准备中"), YBCL(1, "样本处理区完成"), ZJS(2, "杂交室完成"), AS(3, "暗室完成"), SHTG(4, "审核通过");

    private Integer code;
    private String desc;

    public static ExperimentFishStatusEnum getByCode(Integer code) {
        ExperimentFishStatusEnum[] fishStatusEnums = ExperimentFishStatusEnum.values();
        for (ExperimentFishStatusEnum experimentFishStatusEnum : fishStatusEnums) {
            if (experimentFishStatusEnum.getCode().equals(code)) {
                return experimentFishStatusEnum;
            }
        }
        return null;
    }
}
